package Net;


public abstract class Node {
	//private String NodeName;
	private Line FirstLine;
	public Node(){
		//this.NodeName = "";
		this.setFirstLine(null);
	}
	public String GetName(){
		return null;
	}
	/*
	public Node(String name){
		//this.NodeName = name;
	}
	public String getNodeName(){
		//return this.NodeName;
	}
	public Line getFirstLine(){
		return FirstLine;
	}*/
	public int AddLine(Line AdjLine){
		Line tmp = this.getFirstLine();
		this.setFirstLine(AdjLine);
		this.getFirstLine().setNextLine(tmp);
		return 0;
	}
	public Line getFirstLine() {
		return FirstLine;
	}
	public void setFirstLine(Line firstLine) {
		FirstLine = firstLine;
	}
	public int GetType(){
		return ConstDefine.UNKNOWN;
	}
}
